package entity;

import java.io.Serializable;

public class Ticket implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id;
    private String scheduleId;
    private int row;
    private int col;
    private String viewerName;

    public Ticket(String id, String scheduleId, int row, int col, String viewerName) {
        this.id = id;
        this.scheduleId = scheduleId;
        this.row = row;
        this.col = col;
        this.viewerName = viewerName;
    }

    // Getter 和 Setter 方法
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getScheduleId() { return scheduleId; }
    public void setScheduleId(String scheduleId) { this.scheduleId = scheduleId; }
    public int getRow() { return row; }
    public void setRow(int row) { this.row = row; }
    public int getCol() { return col; }
    public void setCol(int col) { this.col = col; }
    public String getViewerName() { return viewerName; }
    public void setViewerName(String viewerName) { this.viewerName = viewerName; }

    @Override
    public String toString() {
        return "Ticket{" +
                "id='" + id + '\'' +
                ", scheduleId='" + scheduleId + '\'' +
                ", row=" + row +
                ", col=" + col +
                ", viewerName='" + viewerName + '\'' +
                '}';
    }
}